/*
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-08-14 22:22:39
 * @LastEditors: Silence
 * @LastEditTime: 2023-08-15 15:59:53
 */

import request from '@/utils/request'

// 商品类型的列表
export const goodsClassApi = (params) => {
  return request.get('/vm-service/skuClass/search', { params })
}
// 商品管理的列表
export const goodsManageApi = (params) => {
  return request.get('/vm-service/sku/search', { params })
}

// 新增商品类型
export const addGoodsClassApi = (data) => {
  return request.post('/vm-service/skuClass', data)
}

// 修改商品类型
export const updateGoodsClassApi = (data) => {
  return request.put(`/vm-service/skuClass/${data.classId}`, data)
}

// 删除商品类型
export const delGoodsClassApi = (id) => {
  return request.delete(`/vm-service/skuClass/${id}`)
}
